<?php

$auth = Auth::getAuth('current_user');
$db = new Database;

$form_id = $_POST['formId'];
$request_id = $_POST['request_Id'];

$logs = functions::getRequestLogs("WHERE form_id={$db->escape($form_id)} AND request_id={$db->escape($request_id)} ORDER BY id DESC LIMIT 0,10" );

echo json_encode($logs);

?>
